package com.turing.post.report.util;

import java.math.BigInteger;
import java.util.Date;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

@Remote
@Local
public interface BranchDaySettDao {
	/**
	 * 插入日结单
	 * 
	 * @param bds
	 * @throws PCPSApplicationException
	 */
	public void insert(BranchDaySett bds) throws PCPSApplicationException;

	/**
	 * 删除某销售机构日结数据
	 * 
	 * @param saleBranchNo
	 *            销售机构号
	 * @param tranDate
	 *            帐务日期
	 */
	public void removeBranchDaySett(String saleBranchNo, Date tranDate);

	/**
	 * 根据条件查询卡商某销售机构某日业务日结数据
	 * 
	 * @param saleBranchNo
	 *            销售机构
	 * @param startTranDate
	 *            起始日期
	 * @param endTranDate
	 *            终止日期
	 * @throws PCPSApplicationException
	 */
	public List<Object[]> getGenerateBranchDaySettList(String saleBranchNo,
			String startTranDate, String endTranDate);

	/**
	 * 获取某发卡机构下属销售机构某日手续费总和
	 * 
	 * @param saleBrchNos
	 * @param tranDate
	 * @return
	 */
	public BigInteger getFeeTotalBySaleBrchNos(String saleBrchNos,
			String startDate, String endDate);
}
